package com.newland.starpos.partner.thread;

import com.newland.starpos.partner.bean.UserInfo;

public class UserThreadLocal {
	
	private static final ThreadLocal<UserInfo> THREAD_LOCAL = new ThreadLocal<UserInfo>();
	
	public static void set(UserInfo userInfo) {
		THREAD_LOCAL.set(userInfo);
	}
	
	public static UserInfo get() {
		return THREAD_LOCAL.get();
	}

	public static void remove(){
		THREAD_LOCAL.remove();
	}
}
